<template>
    <view class="page">
        <!-- 背景 -->
        <u-navbar title="蔚蓝会员" :back-icon-color="'#ffffff'" :title-color="'#ffffff'" :background="background"></u-navbar>
        <view class="content">
            <view class="head-bg">
                <!-- <view class="head-back" :class="{'roll':(scrollTop>20)}">
                <view class="back" @click="onBack">
                    <text></text>
                </view>
                <view class="title">
                    <text>蔚蓝会员</text>
                </view>
            </view> -->
                <view class="txt">
                    <view class="txtl">
                        <view class="cu-avatar lg round margin-left" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg);"></view>
                        <view class="txt1">
                            <text class="p1">张三丰</text>
                            <text class="p2">蔚蓝会员</text>
                        </view>
                    </view>
                    <view class="txtr">
                        <text class="p1">VIP 1</text>
                        <text class="p2">2023年3月13日到期</text>
                    </view>
                </view>
            </view>
            <view class="box1">
                <view class="list active">
                    <view class="tit">蔚蓝年费</view>
                    <view class="bt">
                        <view class="red">
                            <text class="one">￥</text>
                            <text class="price">355</text>
                        </view>
                        <view class="line">
                            ￥ 500
                        </view>
                    </view>
                    <view class="yh">
                        券后价
                    </view>
                </view>
                <view class="list">
                    <view class="tit">蔚蓝年费</view>
                    <view class="bt">
                        <view class="red">
                            <text class="one">￥</text>
                            <text class="price">450</text>
                        </view>
                        <view class="line">
                            ￥ 500
                        </view>
                    </view>
                </view>
                <view class="list">
                    <view class="tit">月度会员</view>
                    <view class="bt">
                        <view class="red">
                            <text class="one">￥</text>
                            <text class="price">10</text>
                        </view>
                        <view class="line">
                            ￥ 500
                        </view>
                    </view>
                    <view class="yh">
                        首月特惠
                    </view>
                </view>
            </view>
            <view class="box box2">
                <button type="primary">355元 立即充值</button>
            </view>
            <view class="vip">
                <view class="box3">
                    <view class="box">
                        <view class="top">
                            <view class="line"></view>
                            <view class="tit">
                                会员权益
                            </view>
                        </view>
                        <view class="qy">
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                        </view>
                    </view>
                    <view class="box">
                        <view class="top">
                            <view class="line"></view>
                            <view class="tit">
                                会员权益
                            </view>
                        </view>
                        <view class="qy">
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                            <view class="p">会员权益1会员权益1</view>
                        </view>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            scrollTop: 0,
            curLine: 1,
            background: {
                // 渐变色
                backgroundImage: 'linear-gradient(to bottom right, #2e996f, #3f99ab)'
            },
        };
    },
    onPageScroll(e) {
        this.scrollTop = e.scrollTop;
    },
    methods: {
        /**
       * 返回点击
       */
        onBack() {
            uni.navigateBack();
        },
    }
}
</script>

<style scoped lang="scss">
.page {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}
.content {
  /* 背景 */
  .head-bg {
    width: 100%;
    height: 180rpx;
    overflow: hidden;
    //   background: url("../../static/my/bg.png") no-repeat center center;
    background-size: cover;
    position: relative;
    .roll {
      background: linear-gradient(to bottom right, #2e996e, #3f99ab);
    }
    .txt {
      width: 690rpx;
      display: flex;
      height: 145rpx;
      position: absolute;
      bottom: 0;
      left: 30rpx;
      display: flex;
      justify-content: space-between;
      .txtl {
        display: flex;
        .txt1 {
          text {
            display: flex;
            // padding-left: 25rpx;
          }
          .p1 {
            font-size: 36rpx;
            color: #714615;
            //   font-weight: 600;
          }
          .p2 {
            padding-top: 10rpx;
            font-size: 24rpx;
            color: #714615;
            opacity: 0.7;
          }
        }
      }
      .txtr {
        text {
          display: block;
        }
        .p1 {
          font-size: 50rpx;
          // font-weight: 600;
          color: #714615;
        }
        .p2 {
          font-size: 24rpx;
          color: #714615;
          opacity: 0.8;
        }
      }
    }
  }
  .box1 {
    width: 690rpx;
    margin: 52rpx auto;
    display: flex;
    justify-content: space-between;
    .list {
      width: 197rpx;
      height: 199rpx;
      border: solid 3rpx #d5d5d5;
      border-radius: 5px;
      position: relative;
      display: flex;
      flex-direction: column;
      .tit {
        font-size: 30rpx;
        color: #906732;
        border-bottom: solid 3rpx #d5d5d5;
        padding: 20rpx 0 16rpx;
        text-align: center;
      }
      .bt {
        flex: 1;
        .red {
          color: #e95404;
          text-align: center;
          padding-top: 18rpx;
          .one {
            font-size: 30rpx;
          }
          .price {
            font-size: 46rpx;
            font-weight: 600;
          }
        }
        .line {
          font-size: 24rpx;
          color: #5d5d5d;
          opacity: 0.43;
          text-align: center;
          text-decoration: line-through;
        }
      }
      .yh {
        position: absolute;
        right: 0;
        top: -25rpx;
        padding: 0 12rpx;
        height: 37rpx;
        background-image: linear-gradient(90deg, #e11901 0%, #ff955b 100%),
          linear-gradient(#1f1f1f, #1f1f1f);
        background-blend-mode: normal, normal;
        font-size: 24rpx;
        color: #ffffff;
        border-bottom-right-radius: 18rpx;
        border-top-left-radius: 18rpx;
      }
    }
    .active {
      border: solid 3rpx #ffc476;
      .tit {
        background-color: #ffcb85;
        border-bottom: solid 3rpx #ffcb85;
      }
      .bt {
        background-color: #ffdcad;
      }
    }
  }
  .box2 {
    button {
      background-image: linear-gradient(0deg, #4199b2 0%, #2d996b 100%),
        linear-gradient(#ff6a00, #ff6a00);
      background-blend-mode: normal, normal;
      border-radius: 20rpx;
    }
  }
  .vip {
    width: 100vw;
    background-color: #f2f2f2;
    padding: 20rpx 0 46rpx;
    .box3 {
      width: 100%;
      background-color: #ffffff;
      padding: 45rpx 0 20rpx;
      .top {
        display: flex;
        align-items: center;
        padding-bottom: 48rpx;
        .line {
          width: 4rpx;
          height: 31rpx;
          background-color: #dd9128;
          border-radius: 2rpx;
        }
        .tit {
          font-size: 32rpx;
          color: #434343;
          font-weight: 600;
          padding-left: 14rpx;
        }
      }
      .qy {
        .p {
          font-size: 24rpx;
          color: #878787;
          padding-bottom: 40rpx;
        }
      }
    }
  }
}
</style>
